package com.wondedDream.service;

import com.wondedDream.model.User;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface UserService {
    User saveUser(User user);
    User getUserById(Integer id);
    List<User> getAllUsers();
    User saveOrUpdateUser(User user);

    Map<String, Object> login(String code, String encryptedData, String iv);
}